Comment: Win32 Application Setup Project
 
 
 
[DEFINE REGION: Define Setup Globals]
Comment: Define Setup Components
Define Component: New Project
 
Comment: Initialize Setup Globals
Get System Setting Windows NT Kernel (NT4, 2000, XP, 2003, Vista, 2008, 7, 2008 R2, 8, 2012, 8.1, 2012 R2, 10) into ISNT
Get Folder Location System->Program Files Directory into PROGRAMFILES
Get Common Folder Location System->Program Files Directory into COMMONFILES
Get Common Folder Location Start Menu->Programs Group into SHORTCUTFILESALL
Get Folder Location Start Menu->Programs Group into SHORTCUTFILES
if Variable SHORTCUTFILESALL Equals 
  Set Variable SHORTCUTFILESALL to $SHORTCUTFILES$
end
Get Folder Location System->Desktop Directory into DESKTOPDIR
Get Folder Location System->Windows Directory into WINDIR
Get Folder Location System->System Directory into WINSYSDIR
Get Folder Location Taskbar->Quick Launch Directory into QUICKLAUNCHDIR
Get Folder Location WWW->WWWRoot into WWWROOTDIR
Set Variable SECONDARY_TARGETDIR to $PROGRAMFILES$\$TITLE$
[END REGION]
 
[DEFINE REGION: Setup User Interview]
 
label: Destination Directory
Display Dialog: destination, wait for dialog to return (modal)
MessageBox: , SECONDARY_TARGETDIR = $SECONDARY_TARGETDIR$$NEWLINE$$NEWLINE$TARGETDIR = $TARGETDIR$
